import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const formManager: AppRouteModule = {
  path: '/formManager',
  name: 'formManager',
  component: LAYOUT,
  redirect: '/formManager/formTemplate',
  meta: {
    orderNo: 9,
    icon: 'material-symbols:format-list-bulleted',
    title: t('routes.demo.formManager.formManager'),
  },
  children: [
    {
      path: 'formTemplate',
      name: 'formTemplate',
      meta: {
        title: t('routes.demo.formManager.formTemplate'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/formManager/formTemplate.vue'),
    },
    {
      path: 'formDesign',
      name: 'formDesign',
      meta: {
        title: t('routes.demo.formManager.formDesign'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/formManager/formDesign.vue'),
    },
  ],
};

export default formManager;
